<template>
    <div>
      <br />

      <myheader/>

     
      <div class="container">

          <div class="item_column">
              <div class="left">   
                  
              </div>

              <div class="right"> 
                <br />
                <br />

                <h1>我的文章</h1>

                <table border="1" cellspacing="0">
                    <tr>
                      <td>文章</td>
                      <td>状态</td>
                    </tr>
                    <tr v-for="i in wzlist" :key="i">
                      <td>{{i.title}}</td>
                      <td v-if="i.status==1">正在审核</td>
                      <td v-if="i.status==2">审核成功</td>
                      <td v-if="i.status==3">审核失败</td>
                    </tr>
                  </table>
                
              
                
         
              </div>

          </div>

      </div>
      
    </div>
</template>
  
<script>
import maxios from '../http/axios'
import myheader from './myheader.vue'


  export default {
    components: {
      'myheader':myheader,
      
    },
  
    data() {
      return {
        wzlist: [],
        uid:localStorage.getItem('uid')
       
        

      }
    },

    methods: {
        get_wzlist(){
            maxios('/get_fiction?uid='+this.uid,'get').then(res=>{
        
                this.wzlist = res.list
            })
    
        },
      
        
    },
    mounted() {

        this.get_wzlist()
       
    }
  }
</script>
  
<style scoped>
@import url("../assets/style.css");

</style>